package models

// ParamSignUp 注册参数
type ParamSignUp struct {
	Username   string `json:"username" binding:"required"`
	Password   string `json:"password" binding:"required"`
	RePassword string `json:"re_password" binding:"required,eqfield=Password"`
}

// ParamLogin 登录参数
type ParamLogin struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

// ParamType 更新分类参数
type ParamType struct {
	TypeID      int    `json:"typeID,string" binding:"required"`
	NewTypeName string `json:"newTypeName" binding:"required"`
}

// ParamDrug 更新药品参数
type ParamDrug struct {
	DrugID     int64   `json:"drugID,string"`
	DrugName   string  `json:"drugName" binding:"required"`
	DrugSpecs  string  `json:"drugSpecs" binding:"required"`
	DrugPrice  float64 `json:"drugPrice" binding:"required"`
	DrugTypeID int     `json:"drugTypeID,string" binding:"required"`
}

// ParamOperate 更新操作参数
type ParamOperate struct {
	OperateID   int    `json:"operateID,string" db:"operate_id" binding:"required"`
	OperateName string `json:"operateName" db:"operate_name" binding:"required"`
}

// ParamStock 添加库存参数
type ParamStock struct {
	StockID   int64 `json:"stockID,string"`
	DrugID    int64 `json:"drugID,string" binding:"required"`
	Number    int32 `json:"number" binding:"required"`
	OperateID int   `json:"operateID,string" binding:"required"`
}

// ParamSalesStatus 更新销售状态参数
type ParamSalesStatus struct {
	SalesStatusID      int    `json:"statusID" binding:"required"`
	NewSalesStatusName string `json:"newSalesStatusName" binding:"required"`
}
